<?php
class network extends MY_Controller{
	
	function network(){
		parent::__construct();
		$this->validateCookie();
	}
	
	function index(){
		$this->showNetwork();
	}
	
	function showNetwork(){
		$this->title = "Network";
		
		$this->config->load("raw");
		
		/*
		 * load header
		 */
		$header = $this->config->item("header");
		$header = $this->load->view("header",$header,true);
		/*
		 * send result content network
		 */
		$this->load->model("memberMod");
		$query['query'] = $this->memberMod->get_record();
		
		/*
		 * load content
		 */
		$content = $this->config->item("content");
//		$content['lpanel'] = $this->load->view('restaurant/profile/theme/default/lpanel','',true);
		$content['main'] = $this->load->view('theme/default/dashboard/network/main',$query,true);
		$content['rpanel'] = $this->load->view('theme/default/dashboard/network/rpanel','',true);
		$con = $this->load->view("content",$content,true);
		
		/*
		 * load footer
		 */
		$footer = $this->config->item("footer");
		$footer = $this->load->view("footer",$footer,true);
		
		/*
		 * finalize view
		 */
		$page = $this->config->item("page");
		$page['title'] = $page['title']." - ".$this->title;
		$this->finalizeView(array(
			'title'=>$page['title'],
    		'jscript'=>js_script($page['jscript_default']),
    		'css'=>css_script($page['css_default']),
			'header'=>$header,
//			'lpanel'=>$lpanel,
    		'content'=>$con,
//			'rpanel'=>$rpanel,
			'footer'=>$footer,
			'layout_width'=>950,
// 			'nav'=>$nav
		));
	}
	
	
	
}